package com.service;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.model.ShardTestBean;

/**
 * 
 * Function: 分库策略
 * 
 * Project Name:DepotsTableDemo 
 * Package Name:com.service 
 * File Name:ShardStrategyService.java 
 * ClassName: ShardStrategyService  
 * 
 * @author tankaichao 
 * @email cgztkc@126.com 
 * @Date 2017年1月5日下午4:49:33
 * @since JDK 1.8 
 *
 */
@Service
public class ShardStrategyService{
	
	@Autowired
	protected SqlSessionTemplate sqlSession;
	
	public ShardTestBean add(ShardTestBean shardTestBean) {
		sqlSession.update("shardTest.addShardTest", shardTestBean);
		return shardTestBean;
	}

}
